package com.yyf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class PayCusumer {
    // 监听支付业务队列
    @RabbitListener(queues = "pay.topic.queue")
    public void handlePayMessage(String message) {
        System.out.println("支付业务处理：" + message);
    }

    // 监听支付日志队列
    @RabbitListener(queues = "pay.log.topic.queue")
    public void handlePayLogMessage(String message) {
        System.out.println("支付日志记录：" + message);
    }


}
